package cn.yanghx.pay.conf.property;

import lombok.Data;

/**
 * 微信支付相关配置
 *
 * @author yanghx
 */
@Data
public class WechatPayProperties {


    //("微信app支付相关配置")
    private WechatAppPayProperties app;

    //("微信小程序支付相关配置")
    private WechatMiniProgramPayProperties miniProgram;


    public WechatAppPayProperties getApp() {
        return null == app ? new WechatAppPayProperties() : app;
    }

    public WechatMiniProgramPayProperties getMiniProgram() {
        return null == miniProgram ? new WechatMiniProgramPayProperties() : miniProgram;
    }
}
